
#ifndef __EX2_TCX_H
#define __EX2_TCX_H

#include <omnetpp.h>

namespace ex2 {

/**
 * Implements the Txc simple module. See the NED file for more information.
 */
class Txc : public cSimpleModule
{
private:

    cMessage *init;
    cMessage *event;
    cMessage *tictocMsg;
    int counter;
    int i;
    simtime_t table[];
    simtime_t delayTable[];
    simtime_t lastReceived;
  protected:

    virtual void initialize();
    virtual void handleMessage(cMessage *msg);
  public :
    Txc();
    };

}; // namespace

#endif
